<template>
	<view class="page">
		<view class="flex benben-position-layout flex flex-wrap align-center purchaseData_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub purchaseData_fd0_0'>
				<view class='flex flex-wrap align-center purchaseData_fd0_0_c0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<image class='purchaseData_fd0_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"19.png"'></image>
				</view>
				<view class='flex flex-wrap align-center'>
					<text class='purchaseData_fd0_0_c1_c0'>预览</text>
				</view>
				<view class='flex flex-wrap align-center purchaseData_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

		<view style="width: 100%;">
			<web-view :src="pdfUrl"></web-view>
		</view>


	</view>
</template>
<script>
	export default {
		components: {},

		data() {
			return {
				pdfUrl: '',
				htmlUrl: '/hybrid/html/web/viewer.html',
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let fileUrl = uni.getStorageSync('pdf');
			this.pdfUrl= this.htmlUrl+ '?file=' + fileUrl;
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {

		}
	};
</script>
<style lang="scss" scoped>
	.ben_fu-jyf-parser_2 {
		background-color: #fff;
		padding-left: 32rpx;
		padding-right: 32rpx;
		padding-top: 0rpx;
		padding-bottom: 0rpx;

	}

	.purchaseData_fd1_0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.purchaseData_flex_1 {
		padding: 24rpx 32rpx 32rpx 32rpx;
	}

	.purchaseData_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.purchaseData_fd0_0_c0 {
		width: 200rpx;
	}

	.purchaseData_fd0_0_c0_c0 {
		width: 20rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.purchaseData_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.purchaseData_fd0_0_c2 {
		width: 200rpx;
	}

	.purchaseData_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% !important;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.page {
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}
</style>
